<?php
//includere fisier configurare
require("librarie/config.php");

?>
<html>
  <head>
    <title>SWar - not just a war.</title>
	<script language="javascript" type="text/javascript" src="librarie/javascript/functii.js"></script>
	<script language="javascript" type="text/javascript" src="librarie/javascript/ajax.js"></script>
	<script language="javascript" type="text/javascript" src="librarie/javascript/butoane.js"></script>
	<script language="javascript" type="text/javascript" src="librarie/javascript/animatii.js"></script>
	<script language="javascript" type="text/javascript" src="librarie/javascript/drag.js"></script>
	<link rel="stylesheet" rev="stylesheet" type="text/css" href="librarie/css/stil.php?browser=ie" title="ie">
	<link rel="alternate stylesheet" rev="alternate" type="text/css" href="librarie/css/stil.php?browser=other" title="other">
	<meta http-equiv="imagetoolbar" content="no">
  </head>
  <body onLoad="initializare()">
		  <table style="height: 600px; width: 900px;" border="0" class="fundal_tabel_principal">
		    <tr>
			  <td height="35" width="100%">
				
				<!-- Continut randul 1 -->
				
				<table width="100%" height="100%">
				  <tr>
				    <td width="60%"><div id="timp_server" class="font_2">Ora univers: <?php echo '<i id="ora_server">'.date("H").'</i>:<i id="minut_server">'.date("i").'</i>:<i id="secunda_server">'.date("s").'</i>'; ?></div></td>
					<td width="40%">
					
					
					  <table width="344" border="0" class="resurse_frame" align="center">
                        <tr>
                          <td width="19">
					      <img src="img/res_minerale.gif" align="absmiddle" alt="minerale" /></td>
                          <td width="85" id="resurse_minerale">0</td>
                          <td width="19">
						    <img src="img/res_gaz.gif" align="absmiddle" alt="gaz" /></td>
                          <td width="85" id="resurse_gaz">0</td>
                          <td width="19">
						    <img src="img/res_populatie.gif" align="absmiddle" alt="populatie" /></td>
                          <td width="91" id="resurse_populatie">0/0</td>
                        </tr>
                      </table>
					  
					  
					</td>
				  </tr>
				</table>
				
				<!-- /Continut randul 1 -->
				
			  </td>
			</tr>
			<tr>
			  <td height="356" width="100%">
			  
			   <!-- Continut randul 2 -->
			  
			  	<table width="100%">
				  <tr>
				    <td width="60%" id="continut_frame" align="center"><img src="img/ldg.gif" alt="Incarcare..." /></td>
					<td width="40%" align="center">
		           <div id="actiune_frame">
					<div id="infrastructura_actiuni" style="height:90px;"></div>
					<div id="unitati_actiuni"></div>
				   </div></td>
				  </tr>
				</table>
				
				<!-- /Continut randul 2 -->
						  
			  </td>
			</tr>
			<tr>
			  <td height="170" id="background_meniu">
			  
			  <!-- Continut randul 3 -->
			  
			  <table width="100%" border="0" id="tabel">			  
			  
                <tr>
                  <td width="21%">
				    <div id="schimba_planete_frame" class="font_2" align="center">&nbsp;</div>
				    <div id="productie_frame" align="center" style="width: 140px; padding-left: 30px">
				  <img src="img/ldg.gif" alt="Incarcare..." /></div>				  </td>
				  <td width="12%"></td>
                  <td width="31%" height="150" align="center">
				    <div id="status_frame" align="center" style="width: 270px; font-size: 12px"><img src="img/logo.gif" width="200" height="90" border="0" alt="SWAR - Not just a war"><br>
			      Alege un obiect pentru a-i vedea statusul.					</div>			      </td><td width="3%"></td>
                  <td width="12%" height="40" align="center">
					<a href="javascript:void(0)" onMouseUp="javascript:arata_meniu();" onMouseOver="javascript:animatie_but('buton_optiuni', 1,'buton')" onMouseOut="javascript:animatie_but('buton_optiuni', 0,'buton')" onMouseDown="javascript:animatie_but('buton_optiuni', 2,'buton')"><div id="buton_optiuni" class="butoane_1">Optiuni</div></a>
					<div class="avatar" id="avatar">
					  <?php
					   $avatar = valoare_mysql("SELECT avatar FROM `users` WHERE user = '".$user."'");  
					   if ($avatar == "") $avatar = "default.jpg";
					   echo ' <img src="avatare/'.$avatar.'" alt="'.$user.'" width="70" height="70"/>'; 
					  ?>
				  </div>	</td>
				  <td width="4%"></td>
				  <td width="17%">
				  <div id="putere_frame" style="width: 135px;" class="font_1"><img src="img/ldg.gif" alt="Incarcare..." /></div>				  
				  </td>
                </tr>
              </table>
			  
			  <!-- /Continut randul 3 -->			  
			  
			  </td>
			</tr>
		  </table>
  </div>
<div id="universal_frame"></div>

<div id="fereastraDrag">
<div onMouseDown="mD('fereastraDrag',event);" style="width:400px; height:20px; background-image: url('img/tab2.gif'); background-repeat: repeat; cursor:move; color:#FFFFFF; text-align:center;" id="obiectDrag"><input type="text" name="drag_fix" id="drag_fix" value="" size="1" maxlength="1" style="visibility: hidden;" /></div>
<div id="optiuni_frame"></div>
</div>

<div id="fereastra_frame"></div>
<div id="constructie_frame"></div>
<div id="hint_frame"></div>
<div id="blocare_frame"></div>
<div id="harta_continut_frame"></div>
<div id="statistici_continut_frame" style="display:none;"></div>
<div id="mesaje_continut_frame" style="display:none;"></div>
<div id="pull_down_menu_2"><div id="notificare_frame" style="float:left; width:200px; border:1px #192222 sloid; background-image:url('img/dot.png'); background-repeat:repeat; height:78px; text-align:left;"></div><a href="javascript:void(0)" onClick="javascript:arata_pd2();"><div style="float:left; width:20px; height:80px; background-image:url('img/but_alerte.gif'); background-position:right;" id="but_pull_alerte"></div></a></div>
<div id="instructiuni_continut_frame" style="display:none;"><iframe width="450" height="350" frameborder="0" scrolling="auto" src="include/instructiuni.html">Browserul dvs. nu suporta afisarea instructiunilor.</iframe></div>
<div id="incarcare_frame"><img src="img/ldg2.gif" /></div>
<div id="meniu_frame" align="center">
<table border="0" height="260">
  <tr><td colspan="3" height="10"></td></tr><tr><td width="44"></td>
  <td width="162" height="209" align="center">
  <a href="javascript:void(0)" onClick="javascript:void(0)" onMouseOver="javascript:animatie_but('but_optiuni_personale', 1, 'buton_mare')" onMouseOut="javascript:animatie_but('but_optiuni_personale', 0, 'buton_mare')" onMouseDown="javascript:animatie_but('but_optiuni_personale', 2,'buton_mare')"><div id="but_optiuni_personale" class="butoane_2">Optiuni personale</div></a>
    <a href="javascript:void(0)" onClick="javascript:void(0)" onMouseOver="javascript:animatie_but('but_optiuni_setari', 1, 'buton_mare')" onMouseOut="javascript:animatie_but('but_optiuni_setari', 0, 'buton_mare')" onMouseDown="javascript:animatie_but('but_optiuni_setari', 2,'buton_mare')"><div id="but_optiuni_setari" class="butoane_2">Setari</div></a>
	    <a href="javascript:void(0)" onClick="javascript:document.location.reload();" onMouseOver="javascript:animatie_but('but_optiuni_reimprospatare', 1, 'buton_mare')" onMouseOut="javascript:animatie_but('but_optiuni_reimprospatare', 0, 'buton_mare')" onMouseDown="javascript:animatie_but('but_optiuni_reimprospatare', 2,'buton_mare')"><div id="but_optiuni_reimprospatare" class="butoane_2">Reimprospatare</div></a><br /><br />
    <a href="javascript:void(0)" onClick="javascript:self.location='index.php?eroare=402';" onMouseOver="javascript:animatie_but('but_optiuni_iesire', 1, 'buton_mare')" onMouseOut="javascript:animatie_but('but_optiuni_iesire', 0, 'buton_mare')" onMouseDown="javascript:animatie_but('but_optiuni_iesire', 2,'buton_mare')"><div id="but_optiuni_iesire" class="butoane_2">Iesire cont</div></a>
  </td>
  <td width="44"></td>
</tr><tr><td></td><td width="162" height="20" align="center"><a href="javascript:void(0)" onMouseUp="javascript:arata_meniu();" onMouseOver="javascript:animatie_but('buton_inchide', 1,'buton')" onMouseOut="javascript:animatie_but('buton_inchide', 0,'buton')" onMouseDown="javascript:animatie_but('buton_inchide', 2,'buton')"><div id="buton_inchide" class="butoane_1">Inchide</div></a></td><td></td></tr><tr><td colspan="3" height="10"></td></tr></table>
</div>
<div id="planeta_continut_frame" style="display:none;"></div>
<div id="pull_down_menu_1" class="font_1">
	<div style="padding-top: 12px; padding-bottom:10px">
	<a href="javascript:setare_cookie('ultimulFrame','planeta');returnare_planeta();">Planeta</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="javascript:setare_cookie('ultimulFrame','harta');returnare_harta(0,0);">Harta Univers </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="javascript:setare_cookie('ultimulFrame','statistici');returnare_statistici('utilizatori', '');">Statistici</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="javascript:setare_cookie('ultimulFrame','mesaje');returnare_mesaje('primite', '0');">Mesaje</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="javascript:setare_cookie('ultimulFrame','instructiuni');schimba_continut('instructiuni');">Instructiuni</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	</div>
				    <center><div style="padding-bottom: 0px; width:90px; height: 24px">
					 <a href="javascript:void(0)" onMouseUp="javascript:arata_pd();" onMouseOver="javascript:animatie_but('buton', 1,'buton')" onMouseOut="javascript:animatie_but('buton', 0,'buton')" onMouseDown="javascript:animatie_but('buton', 2,'buton')"><div id="buton" class="butoane_1">Meniu</div></a>
					</div></center>
</div>
</body>
</html>